package com.ruoyi.crop.api.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Data;

/**
 * 产品表
 * @TableName src_product
 */
@TableName(value ="src_product")
@Data
public class Product implements Serializable {
    /**
     * 产品编号
     */
    @TableId(type = IdType.AUTO)
    private Integer productId;

    /**
     * 批次编号
     */
    @Excel(name = "批次编号")
    private Integer materialLotId;

    /**
     * 溯源码
     */
    @Excel(name = "溯源码")
    private String tracingCode;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 有效期
     */
    @Excel(name = "有效期")
    private String days;

    /**
     * 农户名称
     */
    @Excel(name = "农户名称")
    private Integer farmerId;

    /**
     * 省
     */
    private Integer xid;

    /**
     * 市
     */
    private Integer yid;

    /**
     * 县
     */
    private Integer zid;

    /**
     * 状态
     */
    private String status;

    /**
     *
     */
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改人
     */
    private String updateBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;


    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String address;


    @TableField(exist = false)
    private Integer[] gids;
    @TableField(exist = false)
    private String materialCode;
    @TableField(exist = false)
    private String farmerName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
